#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	char arr[] = "zhangsan";
	int age = 11;
	float math = 91.0;
	char arr3[20];
	int age1;
	float math1;
	char arr2[120] = { 0 };
	sprintf(arr2, "%s %d %f", arr, age, math);
	printf("%s\n", arr2);
	sscanf(arr2, "%s %d %f", arr3, &age1, &math1);
	printf("%d\n", age1);
	printf("%f\n", math1);
	printf("%s\n", arr3);
	return 0;
	
}